package com.neu.his.controller.RegistFee02;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.neu.his.bo.fee.FeeRec;
import com.neu.his.bo.refund.Item;
import com.neu.his.bo.refund.RefundQSend;
import com.neu.his.bo.refund.RefundRec;
import com.neu.his.core.Result;
import com.neu.his.entity.*;
import com.neu.his.mapper.*;
import com.neu.his.service.registFee02.RefundService;
import com.neu.his.utils.PageList;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/refund")
public class Refund {
    @Autowired
    private RefundService refundService;

    @PutMapping("/query")
    public Result getRefund(@RequestBody FeeRec feeRec) {
        return refundService.getRefund(feeRec);
    }

    @PutMapping
    public Result reFund(@RequestBody RefundRec refundRec) {
        return refundService.reFund(refundRec);
    }
}
